package com.javaweb.service;

import org.springframework.stereotype.Service;

@Service
public class TestService {
    public void methodWithNullPointer() {
        String str = null;
        str.length(); // 引发空指针异常
    }
}
